#include "stdafx.h"
#include "PathManager.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

CString CPathManager::GetAppPath()
{
	TCHAR     szApp[MAX_PATH],
		szDriver[_MAX_DRIVE],
		szPath[MAX_PATH] ;
	::GetModuleFileName (NULL, szApp, MAX_PATH) ;
	::_tsplitpath (szApp, szDriver, szPath, NULL, NULL) ;
	::_tmakepath (szApp, szDriver, szPath, NULL, NULL) ;
	return szApp ;
}

CString CPathManager::GetAppSettingPath()
{
	return GetAppPath() + _T("setting.xml");
}
